﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 字符串
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个字符串：");
            string one = Console.ReadLine();
            Console.WriteLine("请输入第二个字符串：");
            string tow = Console.ReadLine();
            判断字符一致(one, tow);


        }
        static void 判断字符一致(string a,string b)
        {
            
            if (a.Equals(b,StringComparison.OrdinalIgnoreCase))
            {
                 Console.WriteLine("相同");
            }
            else
            {
                Console.WriteLine("不同");
            }
             
        }
        static string 字符串拼接(params char[] a)
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < a.Length; i++)
            {
                sb.Append(a[i]);
            }
            return a.ToString();
        }
    }
}
